]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Fix setting fullscreen for screen sized windows
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 30 Sep 2011 16:43:24 +0000 (18:43 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 30 Sep 2011 16:46:14 +0000 (18:46 +0200)
We have to set the flag for all monitors in that case.

js/ui/layout.js

index a50c9f2220cb3d686ba71694e78b13563011b9c9..4e239e6e039e0658be506a8d4a56fa507730b9ae 100644 (file)
@@ -826,10 +826,15 @@ Chrome.prototype = {
             }
             if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
                 // Check whether the window is screen sized
-                if (window.x == 0 && window.y == 0 &&
+                let isScreenSized =
+                    (window.x == 0 && window.y == 0 &&
                     window.width == global.screen_width &&
-                    window.height == global.screen_height)
-                    monitor.inFullscreen = true;
+                    window.height == global.screen_height);
+
+                if (isScreenSized) {
+                    for (let i = 0; i < this._monitors.length; i++)
+                        this._monitors[i].inFullscreen = true;
+                }
 
                 // Or whether it is monitor sized
                 let monitor = this._findMonitorForWindow(window);